<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="cn.netjava.pojo.User;"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>add photo album page</title>
    <link rel="stylesheet" type="text/css" href="css/personblogpage.css" />
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
    <div id="container">
       <div id="front">
          <jsp:include page="personfront.jsp"></jsp:include>
       </div>  
       
       <div id="main">
          <div id="left">
             <jsp:include page="personleft.jsp"></jsp:include>
          </div>
          
          <%User loginUser =(User)session.getAttribute("loginUser"); %>
          <div id="center">
             <%if(null!=loginUser) {
                int uid =Integer.parseInt(request.getParameter("uid"));
                if(loginUser.getId()==uid){%> %>             
             <form action="addphotoalbum.cn" method="POST" ENCTYPE="multipart/form-data">
                     相册名字:<input type="text" name="photoalbumname"  size="50"/><br>
                     相册描述:<br><textarea rows="5" cols="50" name="photoalbumdesc"></textarea><br>                             
                 <input type="submit" value="提交" />               
             </form> 
             <%}else{%>
                   对不起，你不是本人，无权执行这个操作！！！
             <% }}else{ %>
                对不起，你还没有登陆，不能执行这个操作！！！
             <%} %>     
          </div>
       </div>   
       
       <jsp:include page="../footer.jsp"></jsp:include>
   </div>
  </body>
</html>
